local xiangzhen = fk.CreateSkill{
  name = "wk_heg__xiangzhen",
  tags = {Skill.Limited},
}

Fk:loadTranslationTable{
  ["wk_heg__xiangzhen"] = "象阵",
  [":wk_heg__xiangzhen"] = "限定技，出牌阶段，你可将所有手牌当【南蛮入侵】使用，此牌结算后你将手牌摸至体力值。",
  ["#wk_heg__xiangzhen"] = "象阵：你可以将所有手牌当【南蛮入侵】使用，然后将手牌摸至体力上限",

  ["$wk_heg__xiangzhen1"] = "承父母庇护，得此福气。",
  ["$wk_heg__xiangzhen2"] = "多谢父母怜爱。",
}

xiangzhen:addEffect("viewas", {
  anim_type = "offensive",
  prompt = "#wk_heg__xiangzhen",
  card_filter = Util.FalseFunc,
  view_as = function(self, cards)
    local card = Fk:cloneCard("savage_assault")
    card:addSubcards(Self:getCardIds(Player.Hand))
    card.skillName = self.name
    return card
  end,
  enabled_at_play = function(self, player)
    return player:usedSkillTimes(self.name, Player.HistoryGame) == 0 and not player:isKongcheng()
  end,
  after_use = function (self, player, use)
    if player.hp > player:getHandcardNum() then
      player:drawCards(player.hp - player:getHandcardNum(), self.name)
    end
  end,
})

return xiangzhen